CSharpTest.Net
TryUpdate(TKey,KeyValueUpdate<TKey,TValue>) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.BPlusTree Assembly > CSharpTest.Net.Collections Namespace > BPlusTree<TKey,TValue> Class > TryUpdate Method : TryUpdate(TKey,KeyValueUpdate<TKey,TValue>) Method

key
fnUpdate

Glossary Item Box

Modify the value associated with the result of the provided update method as an atomic operation, Allows for reading/writing a single record within the tree lock. Be cautious about the behavior and performance of the code provided as it can cause a dead-lock to occur. If the method returns an instance who .Equals the original, no update is applied.

Syntax

Visual Basic (Declaration) 
Public Overloads Function TryUpdate( _
   ByVal key As TKey, _
   ByVal fnUpdate As CSharpTest.Net.Collections.KeyValueUpdate(Of TKey,TValue) _
) As Boolean
C# 
public bool TryUpdate( 
   TKey key,
   CSharpTest.Net.Collections.KeyValueUpdate<TKey,TValue> fnUpdate
)

Parameters

key
fnUpdate

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys